
import {createI18n} from 'vue-i18n'
import localZhcn from './languages/zh-cn'
import localEn from './languages/en'

import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'


const i18n = createI18n({
    legacy:false,
    locale:'zh-cn',
    fallbackLocale:'zh-cn',
    messages:{
        'zh-cn':localZhcn,
        'en':localEn
    },
    silentTranslationWarn:true,
    missingWarn:false,
    silentFallbackWarn:true,
    fallbackWarn:false
})
export const elementLocales={
    'zh-cn':zhCn,
    'en':en
}
export default i18n
